import React from "react";
import './index.scss'

interface SquareProps {
    onClick: Function;
    value: string | null;
}

function Square(props: SquareProps) {
    return (
            <button className='square' onClick={() => props.onClick()}>
                {props.value}
            </button>
        )
}

export default Square
